package cc.ycws.core.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;

/**
  * <p>
  * 订单商品表
  * </p>
  *
  * @author tutu
  * @since 2018-05-22
  */
@TableName("tv_order_detail")
public class TvOrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 商品名称
     */
    @TableField("detail_name")
    private String detailName;

    /**
     * 商品数量
     */
    @TableField("detail_amount")
    private Integer detailAmount;

    /**
     * 商品单价
     */
    @TableField("detail_price")
    private BigDecimal detailPrice;

    /**
     * 有效时间数,单位(年)
     */
    @TableField("detail_duration")
    private Integer detailDuration;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String creator;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifier;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    /**
     * 备注
     */
    private String remarks;

    public Integer getId() {
    return id;
    }

    public void setId(Integer id) {
    this.id = id;
    }
    public String getOrderNo() {
    return orderNo;
    }

    public void setOrderNo(String orderNo) {
    this.orderNo = orderNo;
    }
    public String getDetailName() {
    return detailName;
    }

    public void setDetailName(String detailName) {
    this.detailName = detailName;
    }
    public Integer getDetailAmount() {
    return detailAmount;
    }

    public void setDetailAmount(Integer detailAmount) {
    this.detailAmount = detailAmount;
    }
    public BigDecimal getDetailPrice() {
    return detailPrice;
    }

    public void setDetailPrice(BigDecimal detailPrice) {
    this.detailPrice = detailPrice;
    }
    public Integer getDetailDuration() {
    return detailDuration;
    }

    public void setDetailDuration(Integer detailDuration) {
    this.detailDuration = detailDuration;
    }
    public String getCreator() {
    return creator;
    }

    public void setCreator(String creator) {
    this.creator = creator;
    }
    public Date getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    }
    public String getModifier() {
    return modifier;
    }

    public void setModifier(String modifier) {
    this.modifier = modifier;
    }
    public Date getModifyTime() {
    return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
    this.modifyTime = modifyTime;
    }
    public String getRemarks() {
    return remarks;
    }

    public void setRemarks(String remarks) {
    this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "TvOrderDetail{" +
                "id=" + id +
                ", orderNo=" + orderNo +
                ", detailName=" + detailName +
                ", detailAmount=" + detailAmount +
                ", detailPrice=" + detailPrice +
                ", detailDuration=" + detailDuration +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", modifier=" + modifier +
                ", modifyTime=" + modifyTime +
                ", remarks=" + remarks +
        "}";
    }
}
